home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Textfiles / zines / C.H.A.O.S / C.H.A.O.S..sit / C.H.A.O.S. / C.H.A.O.S. v1.0.rsrc / TEXT_134.txt < prev    next >
Text File  |  1998-08-16  |  4KB  |  157 lines

  1. UNIX Commands
  2. Unveiled
  3.  
  4. By the Q
  5.  
  6. This file is to help you out on all those hard UNIX commands. Heh, heh.  In the white is what you type at the prompt.  Hopefully you know what the prompt is.  In the green is what it does.  Anything in red can and should be changed to fit your needs.  I just wrote these as they came to me so they are not in any order.  Good luck.
  7.  
  8.  
  9. lo
  10. Logs you out of the system. Always log out, if you dont it could be seen by others.
  11.  
  12. pico
  13. Starts the text editor application, pico. 
  14. pine
  15.  
  16. pico filename 
  17. Either creates a new file named filename or edits the file named filename.
  18.  
  19. pine
  20. Starts the e-mailer proggie.
  21.  
  22. man command
  23. Displays help or info about a certain command.  If you want to know what 'cd' command does, type: man cd - simple right?
  24.  
  25.  
  26. mkdir subdirectory1 
  27. Creates a new directory, or folder as I prefer, called subdirectory1.
  28.  
  29. rmdir subdirectory 
  30. Removes the directory named subdirectory
  31.  
  32. cd subdirectoryname 
  33. Changes current directory to the one specified.
  34.  
  35. cd 
  36. Changes directory to home dir.
  37.  
  38. cd ..
  39. Changes the directory up one level, or back to the previous dir.
  40.  
  41. ls
  42. Lists content of current dir.
  43.  
  44. ls -l 
  45. Long version of directory listing.
  46.  
  47. ls -C 
  48. Lists files in vertical manner.
  49.  
  50. ls -l 
  51. This command lists the directory contents in long format. Information similar to the following is displayed when you issue this command. 
  52.                                                                                                       
  53.                                   size               file/dir name                                                                                                                                                               total 3                             \                     /
  54. -rw-------     1 jdoe    staff     1024 Sept 4 10:35   filename
  55. drwxr-xr-x     2 jdoe    staff     2048 Jan 24 11:28   Mail/
  56. drwxr-xr-x     3 jdoe    staff     2048 Jan 23 09:28   News/
  57.     |          |    \        \               |              
  58. file info   links   owner  staff/stud    date changed
  59.  
  60. ls -la  
  61. Lists hidden files.
  62.  
  63. cat filename 
  64. Shows entire content of file called filename.
  65.  
  66. cat > newfile 
  67. Create new file called newfile
  68.  
  69. cat f1 > f2 
  70. Copies f1 to f2
  71.  
  72. cat f1 f2 > f3 
  73. Places concatenation of f1 and f2 in f3
  74.  
  75. cat f1 >> f3 
  76. Appends f1 to f3 
  77.  
  78. cat f1 | sort 
  79. Sorts the lines of f1
  80.  
  81. cat f1 f2 | sort > f3 
  82. Concatenates f1 and f2, sorts the result and places it in f3
  83.  
  84. pg filename 
  85. List file one page at a time.  Press space to see next page.
  86.  
  87. more filename 
  88. Displays file one screen at a time.  Same as above.
  89.  
  90. tail filename 
  91. Displays last 10 lines of file.
  92.  
  93. mv file1 file2 
  94. Rename file1 to file2.
  95.  
  96. cp file1 file2 
  97. Copy file1 to file2.
  98.  
  99. lpr file1 
  100. Print file1 to line printer.
  101.  
  102. ls | lpr 
  103. Print output (i.e., directory) to line printer.
  104.  
  105. tprint file1 
  106. Print file1 to local printer.
  107.  
  108. diff textfile1 textfile2 
  109. Compare textfile1 to textfile2.
  110.  
  111. cmp binfile1 binfile2 
  112. Compare binary files.
  113.  
  114. passwd 
  115. Change password.
  116.  
  117. rm filename 
  118. Remove file.
  119.  
  120. who 
  121. Display names of users on system.
  122.  
  123. who | more 
  124. Shows who is logged on right now.
  125.  
  126. who am i 
  127. Tells you who you are.
  128.  
  129. finger username 
  130. Display information about specific user.
  131.  
  132. fs quota
  133. Indicates disk space used and left.
  134.  
  135. fs listquota
  136. Additional info about your disk quota.
  137.  
  138. pwd 
  139. Displays the present working dir.
  140.  
  141.  
  142. mv old-filename new-filename 
  143. Renames a file.
  144.  
  145. mv old-directory-name new-directory-name 
  146. Moves contents of one dir to another.
  147.     
  148. ?
  149. Displays help
  150.  
  151. Well, thats it for now.  Hope this is useful to you.  If not, go to a damn search engine, I'm sure they have some kind of documentation about UNIX commands.  Geesh.
  152.  
  153. Q
  154.  
  155.  
  156.  
  157.